export const IS_WEB = true
export const H5_TYPE = {
  mobile: 1,
  pc: 2,
  canvas: 3,
  card: 4,
}
export const THUMBNAIL_WIDTH = 120
export const PREVIEW_WIDTH = 260

export const COMMON_WIDTH = 750
export const COMMON_HEIGHT = 1156

export const MOBILE_WID_HEI = {
  width: COMMON_WIDTH,
  height: 1168,
  designScale: 2,
  adaptiveScale: COMMON_WIDTH/(document.documentElement.clientWidth || document.body.clientWidth),
  clientWidth: document.documentElement.clientWidth || document.body.clientWidth,
  clientHeight: document.documentElement.clientHeight || document.body.clientHeight,
  leftWidth: 200,
  rightWidth: 300,
}
//MOBILE_WID_HEI会在代码运行中被修改
export const MOBILE_WID_HEI_ = {
  width: COMMON_WIDTH,
  height: 1168,
  designScale: 2,
  adaptiveScale: COMMON_WIDTH/(document.documentElement.clientWidth || document.body.clientWidth),
  clientWidth: document.documentElement.clientWidth || document.body.clientWidth,
  clientHeight: document.documentElement.clientHeight || document.body.clientHeight,
  leftWidth: 200,
  rightWidth: 300,
}

export const PC_WID_HEI = {
  width: 800,
  height: document.documentElement.clientHeight - 100,
  designScale: 1,
  adaptiveScale: 1,
  minWidth: 800,
  leftWidth: 200,
  rightWidth: 300,
}
export const CANVAS_WID_HEI = {
  width: document.documentElement.clientWidth,
  height: document.documentElement.clientHeight - 100,
  designScale: 1,
  adaptiveScale: 1,
  minWidth: document.documentElement.clientWidth,
  leftWidth: 200,
  rightWidth: 300,
}
